﻿using System.Windows.Controls;

namespace FAQ_UI
{
	public abstract class FriendHolder : ViewHolder
	{
		public static string savedObject;
		public TextBlock Name;
		public TextBlock Description;
		public TextBlock Count;
		public TextBlock Time;
		public TextBlock OnlineState;
		public MyDrawableView Avatar;

		static FriendHolder()
		{
			savedObject = save(parse("/uitemplate/FriendHolder.xaml"));
		}

		public FriendHolder()
		{
			setView(Clone(savedObject));
			Name = get<TextBlock>("Name");
			Description = get<TextBlock>("Description");
			Count = get<TextBlock>("Count");
			Time = get<TextBlock>("Time");
			OnlineState = get<TextBlock>("OnlineState");
			Avatar = get<MyDrawableView>("Avatar");
		}
	}
}